# Maintainer: Alexey Pavlov <alexpux@gmail.com>

_realname=libspiro

pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}"
pkgver=20071029
pkgrel=2
pkgdesc="Simplifies the drawing of beautiful curves (mingw-w64)"
arch=(any)
url="http://libspiro.sourceforge.net/"
license=("GPL")
makedepends=("${MINGW_PACKAGE_PREFIX}-gcc" "${MINGW_PACKAGE_PREFIX}-pkg-config")
options=('staticlibs' 'strip')
source=("http://downloads.sourceforge.net/sourceforge/${_realname}/${_realname}_src-${pkgver}.tar.bz2")
md5sums=('ab6aaa50bbd8fa55e78f8b8b0112f6cd')

prepare() {
  cd "$srcdir/${_realname}-$pkgver"
}

build() {
  cd "${srcdir}/${_realname}-$pkgver"
  ./configure \
    --prefix=${MINGW_PREFIX} \
    --build=${MINGW_CHOST} \
    --host=${MINGW_CHOST} \
    --target=${MINGW_CHOST}
  make
}

package() {
  cd "${srcdir}/${_realname}-$pkgver"
  make DESTDIR="$pkgdir" install
}
